package cn.huiyunche.base.service.interfaces;

import cn.huiyunche.base.service.model.DWaybillStatusHistory;

/**
 * The interface D waybill status history service.
 *
 * @FileName: cn.huiyunche.service.base.interfaces.tms
 * @Description: 运单扭转状态变更
 * @author: Aaron
 * @date: 2016 /11/3 上午10:13
 */
public interface DWaybillStatusHistoryService {

    /**
     * Add.
     *
     * @param waybillId     the waybill id
     * @param statusType    the status type
     * @param currentStatus the current status
     * @param lastStatus    the last status
     * @param userId        the user id
     * @param userName      the user name
     */
    void add(Long waybillId, String statusType, String currentStatus, String lastStatus, Long userId, String userName);

    /**
     * Gets waybill status history by id.
     *
     * @param waybillId     the waybill id
     * @param statusType    the status type
     * @param currentStatus the current status
     * @return the waybill status history by id
     */
    DWaybillStatusHistory getWaybillStatusHistoryById(Long waybillId, String statusType, String currentStatus);

}
